export const getAmountType = (val) => {
  if (+val === 0) {
    return '人民币'
  } else if (+val === 1) {
    return '港币'
  } else if (+val === 2) {
    return '美元'
  }
}

export const trim = (val) => {
  return val.replace(/(^ +)|( +$)/g, '')
}

export const getRiskLevel = (val) => {
  if (+val === 0) {
    return '保守型'
  } else if (+val === 1) {
    return '稳健型'
  } else {
    return '积极型'
  }
}
